/*
 * Copyright (C), 2005-2019, 深圳市珍爱网信息技术有限公司
 */

package org.idea.ietty.container.bean;

import org.idea.ietty.common.annotation.RequestMapping;
import org.idea.ietty.common.annotation.Resource;
import org.idea.ietty.common.annotation.RestController;

/**
 * @author linhao
 * @date 2020/5/8
 * @Version V1.0
 */
@RestController(url = "test")
public class TestController {

    @Resource
    private UserService userService;

    @RequestMapping(url = "/doTest1")
    public String doTest1(){
        System.out.println("this is test");
        userService.test();
        return "test";
    }

    @RequestMapping(url = "/do2")
    public String do2(String i,String b){
        System.out.println(i);
        System.out.println(b);
        return "do2";
    }

}
